package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * 
 * @TableName inte_identify
 */
@TableName(value ="inte_identify")
public class InteIdentify implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     *
     */
    @JsonProperty("ProductName")
    private String productname;

    /**
     *
     */
    @JsonProperty("EncodeType")
    private String encodetype;

    /**
     *
     */
    @JsonProperty("Code")
    private String code;

    /**
     *
     */
    @JsonProperty("EncodeMode")
    private String encodemode;

    /**
     *
     */
    @JsonProperty("DeviceName")
    private String devicename;

    /**
     *
     */
    @JsonProperty("DevicePlacementPosition")
    private String deviceplacementposition;

    /**
     *
     */
    @JsonProperty("AscribeCodeTime")
    private String ascribecodetime;

    /**
     *
     */
    @JsonProperty("UploadCodeId")
    private String uploadcodeid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public Object getId() {
        return id;
    }

    /**
     *
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     *
     */
    public String getProductname() {
        return productname;
    }

    /**
     *
     */
    public void setProductname(String productname) {
        this.productname = productname;
    }

    /**
     *
     */
    public String getEncodetype() {
        return encodetype;
    }

    /**
     *
     */
    public void setEncodetype(String encodetype) {
        this.encodetype = encodetype;
    }

    /**
     *
     */
    public String getCode() {
        return code;
    }

    /**
     *
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     *
     */
    public String getEncodemode() {
        return encodemode;
    }

    /**
     *
     */
    public void setEncodemode(String encodemode) {
        this.encodemode = encodemode;
    }

    /**
     *
     */
    public String getDevicename() {
        return devicename;
    }

    /**
     *
     */
    public void setDevicename(String devicename) {
        this.devicename = devicename;
    }

    /**
     *
     */
    public String getDeviceplacementposition() {
        return deviceplacementposition;
    }

    /**
     *
     */
    public void setDeviceplacementposition(String deviceplacementposition) {
        this.deviceplacementposition = deviceplacementposition;
    }

    /**
     *
     */
    public String getAscribecodetime() {
        return ascribecodetime;
    }

    /**
     *
     */
    public void setAscribecodetime(String ascribecodetime) {
        this.ascribecodetime = ascribecodetime;
    }

    /**
     *
     */
    public String getUploadcodeid() {
        return uploadcodeid;
    }

    /**
     *
     */
    public void setUploadcodeid(String uploadcodeid) {
        this.uploadcodeid = uploadcodeid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InteIdentify other = (InteIdentify) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProductname() == null ? other.getProductname() == null : this.getProductname().equals(other.getProductname()))
            && (this.getEncodetype() == null ? other.getEncodetype() == null : this.getEncodetype().equals(other.getEncodetype()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getEncodemode() == null ? other.getEncodemode() == null : this.getEncodemode().equals(other.getEncodemode()))
            && (this.getDevicename() == null ? other.getDevicename() == null : this.getDevicename().equals(other.getDevicename()))
            && (this.getDeviceplacementposition() == null ? other.getDeviceplacementposition() == null : this.getDeviceplacementposition().equals(other.getDeviceplacementposition()))
            && (this.getAscribecodetime() == null ? other.getAscribecodetime() == null : this.getAscribecodetime().equals(other.getAscribecodetime()))
            && (this.getUploadcodeid() == null ? other.getUploadcodeid() == null : this.getUploadcodeid().equals(other.getUploadcodeid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProductname() == null) ? 0 : getProductname().hashCode());
        result = prime * result + ((getEncodetype() == null) ? 0 : getEncodetype().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getEncodemode() == null) ? 0 : getEncodemode().hashCode());
        result = prime * result + ((getDevicename() == null) ? 0 : getDevicename().hashCode());
        result = prime * result + ((getDeviceplacementposition() == null) ? 0 : getDeviceplacementposition().hashCode());
        result = prime * result + ((getAscribecodetime() == null) ? 0 : getAscribecodetime().hashCode());
        result = prime * result + ((getUploadcodeid() == null) ? 0 : getUploadcodeid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", productname=").append(productname);
        sb.append(", encodetype=").append(encodetype);
        sb.append(", code=").append(code);
        sb.append(", encodemode=").append(encodemode);
        sb.append(", devicename=").append(devicename);
        sb.append(", deviceplacementposition=").append(deviceplacementposition);
        sb.append(", ascribecodetime=").append(ascribecodetime);
        sb.append(", uploadcodeid=").append(uploadcodeid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}